
<!--
 * @Author: cgl
 * @Date: 2023-04-18 15:12:26
 * @LastEditors: cgl
 * @LastEditTime: 2023-07-12 14:25:00
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\views\slide\components\testItem\testItem08.vue
 * @Description: 08-检测项目
 *
 * Copyright (c) 2023 by cgl/微盛信息产业有限公司, All Rights Reserved.
-->
<template>
  <div>

		<div class="content">
			<!-- 1.管电压指示的偏离---------------------------------------------------------------------------------- -->
			<div id="table1">
				<div class="innertitle" style="position: relative">
					1.管电压指示的偏离：<span style="position: absolute; right: 0px;"><i>$E_v = {V - V_0 \over V_0} \times 100\%$</i></span>
				</div>
				<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
					<tr>
						<td rowspan="2" style="width: 100px;">模式</td>
						<td colspan="3">预置值</td>
						<td colspan="4">管电压测量值<i>$V_{i}$</i><br/>（kV）</td>
						<td rowspan="2" style="width: 100px;">相对固有误差I<br/>(%)</td>
						<td rowspan="2">校准值V<br/>（kV）</td>
						<td rowspan="2">偏差<i>$E_{v}$</i><br/>（%）</td>
						<!-- <td rowspan="2">半值层<br/>（mmAl）</td> -->
					</tr>
					<tr>
						<td>管电压<i>$V_{0}$</i><br/>（kV）</td>
						<td style="width: 160px;">
							管电流<br/>
							（<el-radio v-model="form1.tubeCurrentUnit" :label="0">mA</el-radio>
							<el-radio style="margin-right: 0px;" v-model="form1.tubeCurrentUnit" :label="1">mAs</el-radio>）
						</td>
						<td>曝光时间<br/>（s）</td>
						<td><i>$V_{1}$</i></td>
						<td><i>$V_{2}$</i></td>
						<td><i>$V_{3}$</i></td>
						<td><i>$\overline{V}_{i}$</i></td>
					</tr>
					<tr>
						<td rowspan="3">口内</td>
						<td><el-input v-model="form1.tubeVoltage_1" @change="(value) => {
							form4.tubeVoltage1_1 = value
							submitTestForm(4)
						}"/></td>
						<td><el-input v-model="form1.tubeCurrent_1_1"/></td>
						<td rowspan="3"><el-input v-model="form1.exposureTime_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_1_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_1_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_1_3"/></td>
						<td class="result"><el-input v-model="form1.average_1" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_1" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_1" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_1" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_1" /></td> -->
					</tr>
					<tr>
						<td><el-input v-model="form1.tubeVoltage_2" @change="(value) => {
							form4.tubeVoltage1_2 = value
							submitTestForm(4)
						}"/></td>
            <td><el-input v-model="form1.tubeCurrent_1_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_2_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_2_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_2_3"/></td>
						<td class="result"><el-input v-model="form1.average_2" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_2" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_2" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_2" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_2"/></td> -->
					</tr>
					<tr>
						<td><el-input v-model="form1.tubeVoltage_3" @change="(value) => {
							form4.tubeVoltage1_3 = value
							submitTestForm(4)
						}"/></td>
            <td><el-input v-model="form1.tubeCurrent_1_3"/></td>
						<td><el-input v-model="form1.tubeVoltage_3_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_3_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_3_3"/></td>
						<td class="result"><el-input v-model="form1.average_3" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_3" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_3" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_3" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_3"/></td> -->
					</tr>
					<tr>
						<td rowspan="3">口外全景</td>
						<td><el-input v-model="form1.tubeVoltage_5" @change="(value) => {
							form4.tubeVoltage2_1 = value
							submitTestForm(4)
						}"/></td>
						<td><el-input v-model="form1.tubeCurrent_2_1"/></td>
						<td rowspan="3"><el-input v-model="form1.exposureTime_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_5_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_5_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_5_3"/></td>
						<td class="result"><el-input v-model="form1.average_5" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_5" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_5" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_5" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_5"/></td> -->
					</tr>
					<tr>
						<td><el-input v-model="form1.tubeVoltage_6" @change="(value) => {
							form4.tubeVoltage2_2 = value
							submitTestForm(4)
						}"/></td>
            <td><el-input v-model="form1.tubeCurrent_2_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_6_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_6_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_6_3"/></td>
						<td class="result"><el-input v-model="form1.average_6" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_6" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_6" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_6" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_6"/></td> -->
					</tr>
					<tr>
						<td><el-input v-model="form1.tubeVoltage_7" @change="(value) => {
							form4.tubeVoltage2_3 = value
							submitTestForm(4)
						}"/></td>
            <td><el-input v-model="form1.tubeCurrent_2_3"/></td>
						<td><el-input v-model="form1.tubeVoltage_7_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_7_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_7_3"/></td>
						<td class="result"><el-input v-model="form1.average_7" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_7" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_7" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_7" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_7"/></td> -->
					</tr>
					<tr>
						<td rowspan="3">口外头颅</td>
						<td><el-input v-model="form1.tubeVoltage_9" @change="(value) => {
							form4.tubeVoltage3_1 = value
							submitTestForm(4)
						}"/></td>
						<td><el-input v-model="form1.tubeCurrent_3_1"/></td>
						<td rowspan="3"><el-input v-model="form1.exposureTime_3"/></td>
						<td><el-input v-model="form1.tubeVoltage_9_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_9_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_9_3"/></td>
						<td class="result"><el-input v-model="form1.average_9" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_9" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_9" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_9" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_9"/></td> -->
					</tr>
					<tr>
						<td><el-input v-model="form1.tubeVoltage_10" @change="(value) => {
							form4.tubeVoltage3_2 = value
							submitTestForm(4)
						}"/></td>
            <td><el-input v-model="form1.tubeCurrent_3_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_10_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_10_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_10_3"/></td>
						<td class="result"><el-input v-model="form1.average_10" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_10" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_10" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_10" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_10"/></td> -->
					</tr>
					<tr>
						<td><el-input v-model="form1.tubeVoltage_11" @change="(value) => {
							form4.tubeVoltage3_3 = value
							submitTestForm(4)
						}"/></td>
            <td><el-input v-model="form1.tubeCurrent_3_3"/></td>
						<td><el-input v-model="form1.tubeVoltage_11_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_11_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_11_3"/></td>
						<td class="result"><el-input v-model="form1.average_11" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_11" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_11" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_11" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_11"/></td> -->
					</tr>
					<tr>
						<td rowspan="3">口腔CBCT</td>
						<td><el-input v-model="form1.tubeVoltage_13" @change="(value) => {
							form4.tubeVoltage4_1 = value
							submitTestForm(4)
						}"/></td>
						<td><el-input v-model="form1.tubeCurrent_4_1"/></td>
						<td rowspan="3"><el-input v-model="form1.exposureTime_4"/></td>
						<td><el-input v-model="form1.tubeVoltage_13_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_13_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_13_3"/></td>
						<td class="result"><el-input v-model="form1.average_13" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_13" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_13" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_13" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_13"/></td> -->
					</tr>
					<tr>
						<td><el-input v-model="form1.tubeVoltage_14" @change="(value) => {
							form4.tubeVoltage4_2 = value
							submitTestForm(4)
						}"/></td>
            <td><el-input v-model="form1.tubeCurrent_4_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_14_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_14_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_14_3"/></td>
						<td class="result"><el-input v-model="form1.average_14" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_14" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_14" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_14" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_14"/></td> -->
					</tr>
					<tr>
						<td><el-input v-model="form1.tubeVoltage_15" @change="(value) => {
							form4.tubeVoltage4_3 = value
							submitTestForm(4)
						}"/></td>
            <td><el-input v-model="form1.tubeCurrent_4_3"/></td>
						<td><el-input v-model="form1.tubeVoltage_15_1"/></td>
						<td><el-input v-model="form1.tubeVoltage_15_2"/></td>
						<td><el-input v-model="form1.tubeVoltage_15_3"/></td>
						<td class="result"><el-input v-model="form1.average_15" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationFactor_15" disabled/></td>
						<td class="result"><el-input v-model="form1.calibrationValue_15" disabled/></td>
						<td class="result"><el-input v-model="form1.deviation_15" disabled/></td>
						<!-- <td><el-input v-model="form1.halfValueLayer_15"/></td> -->
					</tr>
				</table>
			</div>

			<!-- 2.辐射输出量重复性------------------------------------------------------------------------ -->
			<div id="table2">
				<div class="innertitle" style="position: relative;">
					2.辐射输出量重复性：
					（<el-checkbox
							v-model="form2.testState"
							@change="(value) => {
								if (value) {
									form2.measurementValue2_1 = ''
									form2.measurementValue2_2 = ''
									form2.measurementValue2_3 = ''
									form2.measurementValue2_4 = ''
									form2.measurementValue2_5 = ''
									form2.repeatability_2 = ''
								}
							}"
						>CBCT状态检测无此项</el-checkbox>）
					<!-- <span style="font-weight: normal; font-size: 14px;">
						（<el-radio v-model="form2.type" :label="1">口腔CBCT验收检测、</el-radio>
						<el-radio style="margin-right: 0px;" v-model="form2.type" :label="2">口内牙科机</el-radio>）
        	</span> -->
					<span style="position: absolute; right: 0px; top: 10px;"><i>$CV = {1 \over \overline K}\sqrt{\Sigma(K_i - \overline K)^2/(n - 1)}\times 100\%$</i></span>
				</div>
				<div>
					检测条件(牙片)：
					<el-input v-model="form2.tubeVoltage_1" class="input-line"/>kV，
					<el-input v-model="form2.tubeCurrent_MA_1" class="input-line"/>mA，
					<el-input v-model="form2.exposureTime_1" class="input-line"/>s，
					<el-input v-model="form2.tubeCurrent_MAS_1" class="input-line"/>mAs，
					SDD=<el-input v-model="form2.sdd_1" class="input-line"/>cm
				</div>
				<div>
					检测条件(CT)：
					<el-input v-model="form2.tubeVoltage_2" class="input-line"/>kV，
					<el-input v-model="form2.tubeCurrent_MA_2" class="input-line"/>mA，
					<el-input v-model="form2.exposureTime_2" class="input-line"/>s，
					<el-input v-model="form2.tubeCurrent_MAS_2" class="input-line"/>mAs，
					SDD=<el-input v-model="form2.sdd_2" class="input-line"/>cm
				</div>
				<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
					<tr>
						<td style="width: 100px;">模式</td>
						<td colspan="7">辐射输出量（<el-radio v-model="form2.measurementValueUnit" :label="1">μGy</el-radio>
							<el-radio style="margin-right: 0px;" v-model="form2.measurementValueUnit" :label="2">mGy</el-radio>）</td>
					</tr>
					<tr>
						<td>口内</td>
						<td style="width: 90px;">测量值<i>$K_{0}$</i></td>
						<td><el-input v-model="form2.measurementValue1_1"/></td>
						<td><el-input v-model="form2.measurementValue1_2"/></td>
						<td><el-input v-model="form2.measurementValue1_3"/></td>
						<td><el-input v-model="form2.measurementValue1_4"/></td>
						<td><el-input v-model="form2.measurementValue1_5"/></td>
						<td class="result" style="width: 240px;">
							输出量重复性偏差CV=<el-input v-model="form2.repeatability_1" class="input-line" disabled/>%
						</td>
					</tr>
					<tr>
						<td>口腔CBCT</td>
						<td>测量值<i>$K_{0}$</i></td>
						<td><el-input v-model="form2.measurementValue2_1"/></td>
						<td><el-input v-model="form2.measurementValue2_2"/></td>
						<td><el-input v-model="form2.measurementValue2_3"/></td>
						<td><el-input v-model="form2.measurementValue2_4"/></td>
						<td><el-input v-model="form2.measurementValue2_5"/></td>
						<td class="result">
							输出量重复性偏差CV=<el-input v-model="form2.repeatability_2" class="input-line" disabled/>%
						</td>
					</tr>
				</table>
			</div>

			<!-- 3.曝光时间指示的偏离------------------------------------------------------------------------ -->
			<div id="table3">
				<div class="innertitle">
					3.曝光时间指示的偏离:
          (<el-checkbox v-model="form3.notHave">设备不显示具体曝光时间</el-checkbox>)
					<span style="margin-left: 50px;"><i>$E_t = t - t_0$</i>(口内机: <i>$t_0\lt0.4s$</i>; 口外机)</span>
					<span style="margin-left: 50px;"><i>$E_t = {t - t_0 \over t_0}\times 100\%$</i>(口内机: <i>$t_0\ge0.4s$</i>)</span>
				</div>
				<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
					<tr>
						<td rowspan="2" style="width: 100px;">模式</td>
						<td colspan="4">预置值</td>
						<td colspan="5">加载时间测量值<i>$t_{i}$</i></td>
						<td rowspan="2" style="width: 120px;">偏差<i>$E_{t}$</i></td>
					</tr>
					<tr>
						<td>管电压<br/>（kV）</td>
						<td style="width: 160px;">
							管电流<br/>
							（<el-radio v-model="form3.tubeCurrentUnit" :label="0">mA</el-radio>
							<el-radio style="margin-right: 0px;" v-model="form3.tubeCurrentUnit" :label="1">mAs</el-radio>）
						</td>
						<td>曝光时间<i>$t_{0}$</i><br/></td>
						<td>单位</td>
						<td><i>$t_{1}$</i></td>
						<td><i>$t_{2}$</i></td>
						<td><i>$t_{3}$</i></td>
						<td><i>$\overline{t}_{i}$</i></td>
						<!-- <td>固有误差</td> -->
						<td>校准值t</td>
					</tr>
					<tr>
						<td>口内</td>
						<td><el-input v-model="form3.tubeVoltage_1"/></td>
						<td><el-input v-model="form3.tubeCurrent_1"/></td>
						<td><el-input v-model="form3.exposureTime_1"/></td>
						<td style="width: 120px;">
							<el-radio-group v-model="form3.valueUnit_1" @input="(value) => {
								// if (value == 1) {
								// 	form3.value_1_1 = form3.value_1_1 * 1000
								// 	form3.value_1_2 = form3.value_1_2 * 1000
								// 	form3.value_1_3 = form3.value_1_3 * 1000
								// } else if (value == 2) {
								// 	form3.value_1_1 = form3.value_1_1 / 1000
								// 	form3.value_1_2 = form3.value_1_2 / 1000
								// 	form3.value_1_3 = form3.value_1_3 / 1000
								// }
							}">
								<el-radio :label="1">ms</el-radio>
								<el-radio :label="2">s</el-radio>
							</el-radio-group>
						</td>
						<td><el-input v-model="form3.value_1_1"/></td>
						<td><el-input v-model="form3.value_1_2"/></td>
						<td><el-input v-model="form3.value_1_3"/></td>
						<td class="result"><el-input v-model="form3.avg_1" disabled/></td>
						<!-- <td class="result"><el-input v-model="form3.inherentError_1" disabled/></td> -->
						<td class="result"><el-input v-model="form3.calibrationValue_1" disabled/></td>
						<td class="result">
							<el-input style="width: 70px;" v-model="form3.deviation_1" disabled/>
							<span v-if="form3.exposureTime_1 && form3.valueUnit_1">
                <span v-if="form3.valueUnit_1 == '1'">{{ form3.exposureTime_1 / 1000 >= 0.4 ? '%' : 's' }}</span>
                <span v-if="form3.valueUnit_1 == '2'">{{ form3.exposureTime_1 >= 0.4 ? '%' : 's' }}</span>
              </span>
						</td>
					</tr>
					<tr>
						<td>口外全景</td>
						<td><el-input v-model="form3.tubeVoltage_2"/></td>
						<td><el-input v-model="form3.tubeCurrent_2"/></td>
						<td><el-input v-model="form3.exposureTime_2"/></td>
						<td>s</td>
						<td><el-input v-model="form3.value_2_1"/></td>
						<td><el-input v-model="form3.value_2_2"/></td>
						<td><el-input v-model="form3.value_2_3"/></td>
						<td class="result"><el-input v-model="form3.avg_2" disabled/></td>
						<!-- <td class="result"><el-input v-model="form3.inherentError_2" disabled/></td> -->
						<td class="result"><el-input v-model="form3.calibrationValue_2" disabled/></td>
						<td class="result">
							<el-input style="width: 70px;" v-model="form3.deviation_2" disabled/>
							<span>s</span>
						</td>
					</tr>
					<tr>
						<td>口外头颅</td>
						<td><el-input v-model="form3.tubeVoltage_3"/></td>
						<td><el-input v-model="form3.tubeCurrent_3"/></td>
						<td><el-input v-model="form3.exposureTime_3"/></td>
						<td>s</td>
						<td><el-input v-model="form3.value_3_1"/></td>
						<td><el-input v-model="form3.value_3_2"/></td>
						<td><el-input v-model="form3.value_3_3"/></td>
						<td class="result"><el-input v-model="form3.avg_3" disabled/></td>
						<!-- <td class="result"><el-input v-model="form3.inherentError_3" disabled/></td> -->
						<td class="result"><el-input v-model="form3.calibrationValue_3" disabled/></td>
						<td class="result">
							<el-input style="width: 70px;" v-model="form3.deviation_3" disabled/>
							<span>s</span>
						</td>
					</tr>
					<tr>
						<td>口腔CBCT</td>
						<td><el-input v-model="form3.tubeVoltage_4"/></td>
						<td><el-input v-model="form3.tubeCurrent_4"/></td>
						<td><el-input v-model="form3.exposureTime_4"/></td>
						<td>s</td>
						<td><el-input v-model="form3.value_4_1"/></td>
						<td><el-input v-model="form3.value_4_2"/></td>
						<td><el-input v-model="form3.value_4_3"/></td>
						<td class="result"><el-input v-model="form3.avg_4" disabled/></td>
						<!-- <td class="result"><el-input v-model="form3.inherentError_4" disabled/></td> -->
						<td class="result"><el-input v-model="form3.calibrationValue_4" disabled/></td>
						<td class="result">
							<el-input style="width: 70px;" v-model="form3.deviation_4" disabled/>
							<span>s</span>
						</td>
					</tr>
				</table>
			</div>

			<!-- 4.有用线束半值层------------------------------------------------------------------------ -->
			<div id="table4">
				<div class="innertitle">
					4.有用线束半值层:
					（<el-checkbox
							v-model="form4.testState"
							@change="(value) => {
								if (value) {
									form4.useScope_4 = ''
									form4.tubeVoltage4_1 = ''
									form4.halfValueLayer4_1 = ''
									form4.tubeVoltage4_2 = ''
									form4.halfValueLayer4_2 = ''
									form4.tubeVoltage4_3 = ''
									form4.halfValueLayer4_3 = ''
								}
							}"
						>CBCT状态检测无此项</el-checkbox>）
				</div>
				<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
					<tr>
						<td rowspan="2">模式</td>
						<td>预置值</td>
						<td rowspan="2">半值层（mmAl）</td>
					</tr>
					<tr>
						<td>管电压<i>$V_0$</i>（kV）</td>
					</tr>
					<tr>
						<td rowspan="3">
							口内
							（<el-radio v-model="form4.useScope_1" :label="0">60~70</el-radio>
							<el-radio v-model="form4.useScope_1" :label="1">60~90</el-radio>）
						</td>
						<td><el-input v-model="form4.tubeVoltage1_1"/></td>
						<td><el-input v-model="form4.halfValueLayer1_1"/></td>
					</tr>
					<tr>
						<td><el-input v-model="form4.tubeVoltage1_2"/></td>
						<td><el-input v-model="form4.halfValueLayer1_2"/></td>
					</tr>
					<tr>
						<td><el-input v-model="form4.tubeVoltage1_3"/></td>
						<td><el-input v-model="form4.halfValueLayer1_3"/></td>
					</tr>
					<tr>
						<td rowspan="3">
							口外全景
							（<el-radio v-model="form4.useScope_2" :label="0">60~70</el-radio>
							<el-radio v-model="form4.useScope_2" :label="1">60~125</el-radio>）
						</td>
						<td><el-input v-model="form4.tubeVoltage2_1"/></td>
						<td><el-input v-model="form4.halfValueLayer2_1"/></td>
					</tr>
					<tr>
						<td><el-input v-model="form4.tubeVoltage2_2"/></td>
						<td><el-input v-model="form4.halfValueLayer2_2"/></td>
					</tr>
					<tr>
						<td><el-input v-model="form4.tubeVoltage2_3"/></td>
						<td><el-input v-model="form4.halfValueLayer2_3"/></td>
					</tr>
					<tr>
						<td rowspan="3">
							口外头颅
							（<el-radio v-model="form4.useScope_3" :label="0">60~70</el-radio>
							<el-radio v-model="form4.useScope_3" :label="1">60~125</el-radio>）
						</td>
						<td><el-input v-model="form4.tubeVoltage3_1"/></td>
						<td><el-input v-model="form4.halfValueLayer3_1"/></td>
					</tr>
					<tr>
						<td><el-input v-model="form4.tubeVoltage3_2"/></td>
						<td><el-input v-model="form4.halfValueLayer3_2"/></td>
					</tr>
					<tr>
						<td><el-input v-model="form4.tubeVoltage3_3"/></td>
						<td><el-input v-model="form4.halfValueLayer3_3"/></td>
					</tr>
					<tr>
						<td rowspan="3">
							口腔CBCT
							（<el-radio v-model="form4.useScope_4" :label="0">60-70</el-radio>
							<el-radio v-model="form4.useScope_4" :label="1">60-125</el-radio>）
						</td>
						<td><el-input v-model="form4.tubeVoltage4_1"/></td>
						<td><el-input v-model="form4.halfValueLayer4_1"/></td>
					</tr>
					<tr>
						<td><el-input v-model="form4.tubeVoltage4_2"/></td>
						<td><el-input v-model="form4.halfValueLayer4_2"/></td>
					</tr>
					<tr>
						<td><el-input v-model="form4.tubeVoltage4_3"/></td>
						<td><el-input v-model="form4.halfValueLayer4_3"/></td>
					</tr>
				</table>
			</div>

			<!-- 5.高对比分辨力、6.低对比分辨力------------------------------------------------------------------ -->
			<div id="table5">
				<div class="innertitle">
					5.高对比度分辨力、6.低对比分辨力：（
					<el-checkbox
						v-model="form5.notHave"
						style="margin-right: 0"
						@change="handleChange"
					>非数字成像设备不检测此项</el-checkbox>）（
					<el-checkbox
						v-model="form5.notHaveInside"
						style="margin-right: 0"
					>口内非数字成像</el-checkbox>）
				</div>
				<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
					<tr>
						<td rowspan="2" style="width: 100px;">模式</td>
						<td colspan="4">检测条件</td>
						<td colspan="3">检测结果</td>
					</tr>
					<tr>
						<td>管电压<br/>（kV）</td>
						<td style="width: 160px;">
							管电流<br/>
							（<el-radio v-model="form5.tubeCurrentUnit" :label="0">mA</el-radio>
							<el-radio style="margin-right: 0px;" v-model="form5.tubeCurrentUnit" :label="1">mAs</el-radio>）
						</td>
						<td>曝光时间<br/>（s）</td>
						<td>滤过材料</td>
						<td style="width: 160px;">最大可分辨线对数目，<br/>lp/mm</td>
						<td>测试铝板厚度</td>
						<td width="150px">可分辨的最小孔径，<br/>mm</td>
					</tr>
					<tr>
						<td>口内</td>
						<td><el-input v-model="form5.tubeVoltage_1"/></td>
						<td><el-input v-model="form5.tubeCurrent_1"/></td>
						<td><el-input v-model="form5.exposureTime_1"/></td>
						<td><el-input v-model="form5.filtration_3"/></td>
						<td><el-input v-model="form5.resolvingPair_1"/></td>
						<td><el-input v-model="form5.aluminum_1"/></td>
						<td><el-input v-model="form5.minAperture_1"/></td>
					</tr>
					<tr>
						<td>口外全景</td>
						<td><el-input v-model="form5.tubeVoltage_2"/></td>
						<td><el-input v-model="form5.tubeCurrent_2"/></td>
						<td><el-input v-model="form5.exposureTime_2"/></td>
						<td>
							<el-radio v-model="form5.filtration_1" :label="1">6mmAl</el-radio>
							<el-radio style="margin-right: 0px;" v-model="form5.filtration_1" :label="2">6mmAl+0.8mmCu</el-radio>
						</td>
						<td><el-input v-model="form5.resolvingPair_2"/></td>
						<td>0.5mm</td>
						<td><el-input v-model="form5.minAperture_2"/></td>
					</tr>
					<tr>
						<td>口外头颅</td>
						<td><el-input v-model="form5.tubeVoltage_3"/></td>
						<td><el-input v-model="form5.tubeCurrent_3"/></td>
						<td><el-input v-model="form5.exposureTime_3"/></td>
						<td><el-input v-model="form5.filtration_4"/></td>
						<td><el-input v-model="form5.resolvingPair_3"/></td>
						<td><el-input v-model="form5.aluminum_2"/></td>
						<td><el-input v-model="form5.minAperture_3"/></td>
					</tr>
					<tr>
						<td>口腔CBCT</td>
						<td><el-input v-model="form5.tubeVoltage_4" @change="(value) => {
							form6.tubeVoltage_1 = value
							submitTestForm(6)
						}"/></td>
						<td><el-input v-model="form5.tubeCurrent_4" @change="(value) => {
							form6.tubeCurrent_1 = value
							submitTestForm(6)
						}"/></td>
						<td><el-input v-model="form5.exposureTime_4" @change="(value) => {
							form6.exposureTime_1 = value
							submitTestForm(6)
						}"/></td>
						<td>
							<el-radio v-model="form5.filtration_2" :label="1">6mmAl</el-radio>
							<el-radio style="margin-right: 0px;" v-model="form5.filtration_2" :label="2">6mmAl+0.8mmCu</el-radio>
						</td>
						<td>
							横断面：<el-input class="input-line" v-model="form5.crossSection"/>，<br>
							冠状面：<el-input class="input-line" v-model="form5.coronalPlane"/>，<br>
							矢状面：<el-input class="input-line" v-model="form5.sagittalPlane"/>，
						</td>
						<td>0.5mm</td>
						<td>
							LDPE：<el-input class="input-line" v-model="form5.ldpe"/>，<br>
							DELRIN：<el-input class="input-line" v-model="form5.delrin"/>，<br>
						</td>
					</tr>
				</table>
			</div>

			<!-- 6.KAP指示偏离------------------------------------------------------------------ -->
			<div id="table6">
				<div class="innertitle">
					7.KAP指示偏离（
					<el-checkbox
						v-model="form6.cbct"
						@change="(value) => {
							// if (value) {
							// 	form7.cbct = true
							// 	form8.cbct = true
							// } else {
							// 	form7.cbct = false
							// 	form8.cbct = false
							// }
							// submitTestForm(7)
							// submitTestForm(8)
						}"
					>口腔CBCT性能检测</el-checkbox>
					<el-checkbox v-model="form6.tool">该设备不显示KAP值</el-checkbox>
					）（
					<el-radio-group v-model="form6.methodType">
            <el-radio :label="0">KAP仪法</el-radio>
            <el-radio :label="1">剂量仪法</el-radio>
          </el-radio-group>
					）
				</div>
				<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
					<tr>
						<td colspan="4">检测条件</td>
						<td colspan="10">检测结果</td>
					</tr>
					<tr>
						<td rowspan="2" width="80px">测试方法</td>
						<td rowspan="2" style="width: 60px;">管电压<br/>（kV）</td>
						<td rowspan="2" style="width: 155px;">
							管电流<br/>
							（<el-radio v-model="form6.tubeCurrentUnit" :label="0">mA</el-radio>
							<el-radio style="margin-right: 0px;" v-model="form6.tubeCurrentUnit" :label="1">mAs</el-radio>）
						</td>
						<td rowspan="2" width="70px">曝光时间<br/>（s）</td>
						<td rowspan="2" width="90px">系统显示值<br/>
              <div v-show="form6.methodType == '1'">
							  <el-radio style="margin-right: 0px;" v-model="form6.displayValueUnit" :label="0"><i>$mGy.cm^2$</i></el-radio>
							  <el-radio style="margin-right: 0px;" v-model="form6.displayValueUnit" :label="1"><i>$μGy.m^2$</i></el-radio>
              </div>
              <div v-show="form6.methodType != '1'">
							  <el-radio style="margin-right: 0px;" v-model="form6.displayValueUnit" :label="0"><i>$mGy.cm^2$</i></el-radio>
							  <el-radio style="margin-right: 0px;" v-model="form6.displayValueUnit" :label="1"><i>$μGy.m^2$</i></el-radio>
              </div>
						</td>
						<td colspan="4">
              <div v-show="form6.methodType == '1'">
							  <el-radio v-model="form6.valueUnit" :label="0"><i>$mGy$</i></el-radio>
							  <el-radio style="margin-right: 0px;" v-model="form6.valueUnit" :label="1"><i>$μGy$</i></el-radio>
              </div>
              <div v-show="form6.methodType != '1'">
                <el-radio v-model="form6.valueUnit" :label="0"><i>$mGy.cm^2$</i></el-radio>
							  <el-radio style="margin-right: 0px;" v-model="form6.valueUnit" :label="1"><i>$μGy.m^2$</i></el-radio>
              </div>
						</td>
						<td rowspan="2" style="width: 70px;">校准因子<br/>K</td>
						<td rowspan="2" style="width: 80px;">校准值</td>
						<td rowspan="2" style="width: 130px;" v-show="form6.methodType == '1'">野照射面积<br/>(长×宽)</td>
						<td rowspan="2" width="80px" v-show="form6.methodType == '1'">测量值<br/>
							<el-radio style="margin-right: 0px;" v-model="form6.measureValueUnit" :label="0"><i>$mGy.cm^2$</i></el-radio>
							<el-radio style="margin-right: 0px;" v-model="form6.measureValueUnit" :label="1"><i>$μGy.m^2$</i></el-radio>
						</td>
						<td rowspan="2" style="width: 70px;">指示偏差（%）</td>
					</tr>
					<tr>
						<td colspan="3">测量值</td>
						<td style="width: 80px;">平均值</td>
					</tr>
					<tr v-show="form6.methodType == '0'">
						<td>KAP仪法</td>
						<td><el-input	v-model="form6.tubeVoltage_1" @change="(value) => {
							form7.tubeVoltage = value
							form8.tubeVoltage = value
							submitTestForm(7)
							submitTestForm(8)
						}"/></td>
						<td><el-input	v-model="form6.tubeCurrent_1" @change="(value) => {
							if (form6.tubeCurrentUnit == 1) { // mAs
								form7.tubeCurrent_MAS = value
								form8.tubeCurrent_MAS = value
							} else {
								form7.tubeCurrent_MA = value
								form8.tubeCurrent_MA = value
							}
							submitTestForm(7)
							submitTestForm(8)
						}"/></td>
						<td><el-input	v-model="form6.exposureTime_1" @change="(value) => {
							form7.exposureTime = value
							form8.exposureTime = value
							submitTestForm(7)
							submitTestForm(8)
						}"/></td>
						<td><el-input	v-model="form6.displayValue_1"/></td>
						<td><el-input	v-model="form6.value_1_1"/></td>
						<td><el-input	v-model="form6.value_1_2"/></td>
						<td><el-input	v-model="form6.value_1_3"/></td>
						<td class="result"><el-input v-model="form6.average_1" disabled/></td>
						<td class="result"><el-input v-model="form6.calibrationFactor_1" disabled/></td>
						<td class="result"><el-input v-model="form6.calibrationValue_1" disabled/></td>
						<td v-show="form6.methodType == '1'">--</td>
            <td v-show="form6.methodType == '1'">--</td>
						<td class="result"><el-input v-model="form6.deviation_1" disabled/></td>
					</tr>
					<tr v-show="form6.methodType == '1'">
						<td>剂量仪法</td>
						<td><el-input	v-model="form6.tubeVoltage_2" @change="(value) => {
							form7.tubeVoltage = value
							form8.tubeVoltage = value
							submitTestForm(7)
							submitTestForm(8)
						}"/></td>
						<td><el-input	v-model="form6.tubeCurrent_2" @change="(value) => {
							if (form6.tubeCurrentUnit == 1) { // mAs
								form7.tubeCurrent_MAS = value
								form8.tubeCurrent_MAS = value
							} else {
								form7.tubeCurrent_MA = value
								form8.tubeCurrent_MA = value
							}
							submitTestForm(7)
							submitTestForm(8)
						}"/></td>
						<td><el-input	v-model="form6.exposureTime_2" @change="(value) => {
							form7.exposureTime = value
							form8.exposureTime = value
							submitTestForm(7)
							submitTestForm(8)
						}"/></td>
						<td><el-input	v-model="form6.displayValue_2"/></td>
						<td><el-input	v-model="form6.value_2_1"/></td>
						<td><el-input	v-model="form6.value_2_2"/></td>
						<td><el-input	v-model="form6.value_2_3"/></td>
						<td class="result"><el-input v-model="form6.average_2" disabled/></td>
						<td class="result"><el-input v-model="form6.calibrationFactor_2" disabled/></td>
						<td class="result"><el-input v-model="form6.calibrationValue_2" disabled/></td>
						<td v-show="form6.methodType == '1'">
							<el-input class="input-line" v-model="form6.irradiatedFieldArea" />
						</td>
            <td v-show="form6.methodType == '1'">
              <el-input v-model="form6.measureValue"/>
            </td>
						<td class="result"><el-input v-model="form6.deviation_2" disabled/></td>
					</tr>
				</table>
			</div>

			<!-- 7.图像均匀性------------------------------------------------------------------ -->
			<div id="table7">
				<div class="innertitle">
					8.图像均匀性
					（
					<el-checkbox
						v-model="form7.cbct"
						@change="(value) => {
							// if (value) {
							// 	form6.cbct = true
							// 	form8.cbct = true
							// } else {
							// 	form6.cbct = false
							// 	form8.cbct = false
							// }
							// submitTestForm(6)
							// submitTestForm(8)
						}"
					>口腔CBCT性能检测</el-checkbox>
					<el-checkbox v-model="form7.tool">该设备无测量工具组</el-checkbox>
					）
					<div style="font-size: 14px; font-weight: normal; padding-left: 20px;">
						检测条件:
						<el-input v-model="form7.tubeVoltage" class="input-line"/>kV，
						<el-input v-model="form7.tubeCurrent_MA" class="input-line"/>mA，
						<el-input v-model="form7.exposureTime" class="input-line"/>s，
						<el-input v-model="form7.tubeCurrent_MAS" class="input-line"/>mAs，
						校准类型：
						<el-button type="primary" size="mini" @click="() => {
							form7.middle_adjusting = form7.middle
							form7.left_up_adjusting = form7.left_up
							form7.right_up_adjusting = form7.right_up
							form7.left_down_adjusting = form7.left_down
							form7.right_down_adjusting = form7.right_down
							submitTestForm(7);
						}">+0</el-button>
						<el-button type="primary" size="mini" @click="() => {
							form7.middle_adjusting = Number((Number(form7.middle) + 1000).toFixed(10))
							form7.left_up_adjusting = Number((Number(form7.left_up) + 1000).toFixed(10))
							form7.right_up_adjusting = Number((Number(form7.right_up) + 1000).toFixed(10))
							form7.left_down_adjusting = Number((Number(form7.left_down) + 1000).toFixed(10))
							form7.right_down_adjusting = Number((Number(form7.right_down) + 1000).toFixed(10))
							submitTestForm(7);
						}">+1000</el-button>
						<el-button type="primary" size="mini" @click="() => {
							form7.middle_adjusting = Number((Number(form7.middle) + 2000).toFixed(10))
							form7.left_up_adjusting = Number((Number(form7.left_up) + 2000).toFixed(10))
							form7.right_up_adjusting = Number((Number(form7.right_up) + 2000).toFixed(10))
							form7.left_down_adjusting = Number((Number(form7.left_down) + 2000).toFixed(10))
							form7.right_down_adjusting = Number((Number(form7.right_down) + 2000).toFixed(10))
							submitTestForm(7);
						}">+2000</el-button>
						<el-button type="primary" size="mini" @click="() => {
							form7.middle_adjusting = Number((Number(form7.middle) + 3000).toFixed(10))
							form7.left_up_adjusting = Number((Number(form7.left_up) + 3000).toFixed(10))
							form7.right_up_adjusting = Number((Number(form7.right_up) + 3000).toFixed(10))
							form7.left_down_adjusting = Number((Number(form7.left_down) + 3000).toFixed(10))
							form7.right_down_adjusting = Number((Number(form7.right_down) + 3000).toFixed(10))
							submitTestForm(7);
						}">+3000</el-button>
					</div>
				</div>
				<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
					<tr>
						<td>测量位置</td>
						<td>中心</td>
						<td>0点</td>
						<td>3点</td>
						<td>6点</td>
						<td>9点</td>
						<td>结果（%）</td>
					</tr>
					<tr>
						<td style="width: 120px;">实测平均像素值<br/>（PV）</td>
						<td><el-input	v-model="form7.middle"/></td>
						<td><el-input	v-model="form7.left_up"/></td>
						<td><el-input	v-model="form7.right_up"/></td>
						<td><el-input	v-model="form7.left_down"/></td>
						<td><el-input	v-model="form7.right_down"/></td>
						<td class="result" rowspan="3"><el-input	v-model="form7.result_adjusting" disabled/></td>
					</tr>
					<tr>
						<td style="width: 120px;">修正值</td>
						<td class="result"><el-input v-model="form7.middle_adjusting" disabled/></td>
						<td class="result"><el-input v-model="form7.left_up_adjusting" disabled/></td>
						<td class="result"><el-input v-model="form7.right_up_adjusting" disabled/></td>
						<td class="result"><el-input v-model="form7.left_down_adjusting" disabled/></td>
						<td class="result"><el-input v-model="form7.right_down_adjusting" disabled/></td>
						<!-- <td class="result"><el-input v-model="form7.result_adjusting" disabled/></td> -->
					</tr>
					<tr>
						<td style="width: 120px;" colspan="2">与中心偏差(%)</td>
						<td class="result"><el-input v-model="form7.deviation_0" disabled/></td>
						<td class="result"><el-input v-model="form7.deviation_3" disabled/></td>
						<td class="result"><el-input v-model="form7.deviation_6" disabled/></td>
						<td class="result"><el-input v-model="form7.deviation_9" disabled/></td>
					</tr>
				</table>
			</div>

			<!-- 8.测距误差------------------------------------------------------------------ -->
			<div id="table8">
				<div class="innertitle">
					9.测距误差
					（
					<el-checkbox
						v-model="form8.cbct"
						@change="(value) => {
							// if (value) {
							// 	form6.cbct = true
							// 	form7.cbct = true
							// } else {
							// 	form6.cbct = false
							// 	form7.cbct = false
							// }
							// submitTestForm(6)
							// submitTestForm(7)

							if (value) {
								form8.readLength_0 = 50
								form8.readLength_90 = 50
							}
						}"
					>口腔CBCT性能检测</el-checkbox>
					<el-checkbox v-model="form8.tool" @change="(value) => {
							if (value) {
								form8.readLength_0 = ''
								form8.readLength_90 = ''
							}
						}">该设备无测量工具组</el-checkbox>
					）
					<span style="font-size: 14px; font-weight: normal;">
						预置条件:
						<el-input v-model="form8.tubeVoltage" class="input-line"/>kV，
						<el-input v-model="form8.tubeCurrent_MA" class="input-line"/>mA，
						<el-input v-model="form8.exposureTime" class="input-line"/>s，
						<el-input v-model="form8.tubeCurrent_MAS" class="input-line"/>mAs
					</span>
				</div>
				<table border="1" cellspacing="0" cellpadding="0" align="center" style="width: 100%">
					<tr>
						<td>测量方向</td>
						<td>测量距离<i>$D_m$</i>，mm</td>
						<td>真实距离<i>$D_o$</i>，mm</td>
						<td>偏差E，%</td>
					</tr>
					<tr>
						<td>0°</td>
						<td><el-input	v-model="form8.testLength_0"/></td>
						<td><el-input	v-model="form8.readLength_0"/></td>
						<td class="result"><el-input	v-model="form8.deviation_0" disabled/></td>
					</tr>
					<tr>
						<td>90°</td>
						<td><el-input	v-model="form8.testLength_90"/></td>
						<td><el-input	v-model="form8.readLength_90"/></td>
						<td class="result"><el-input	v-model="form8.deviation_90" disabled/></td>
					</tr>
				</table>
			</div>

			<div id="table9">
				<div class="innertitle">
					其他说明：
				</div>
				<div class="tip-30">
					<el-input
						type="textarea"
						placeholder=""
						v-model="basicForm.specialCircumstances"
						:autosize="{minRows:2}"
						@blur="$bus.$emit('update-basicinfo', basicForm.taskDetectionEquipmentResultId)"
					></el-input>
				</div>
			</div>

			<!-- 1.管电压指示的偏离与有用线束半值层---------------------------------------------------------------------------------- -->
			<!-- <div id="table1">
				<div class="innertitle">
					1.管电压指示的偏离与有用线束半值层
				</div>（验收检测设置最低、中间和最高三挡管电压，状态检测设置常用档）

				<div class="tip-30">
					<div class="checkbox-bolder">
						<el-checkbox v-model="form1.export" style="display: inline">对于口内机，将探头置于靠近线束筒出口位置；</el-checkbox> <br>
						<el-checkbox v-model="form1.surface" style="display: inline">对于口外机全景摄影功能的设备，将探头置于影像接收器外壳表面；</el-checkbox> <br>
						<el-checkbox v-model="form1.outside" style="display: inline">对于口外机头颅侧位摄影功能的设备，将探头置于次级光阑外侧。</el-checkbox>
					</div>
				</div>

				<table border="1" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td rowspan="2" >设备功能</td>
						<td rowspan="2">管电压预设值<i>$V_0$</i>（kV）</td>
						<td rowspan="2" colspan="3">检测值<i>$V_i$</i>（kV）</td>
						<td rowspan="2"  >相对固有误差I(%)</td>
						<td rowspan="2"  >修正值<i>$_\overline V$</i></td>
						<td rowspan="2" >管电压偏离（%）</td>
						<td colspan="2">半值层（mmAl）</td>
					</tr>

					<tr>
						<td width="100px">读出值</td>
						<td width="100px">修约值</td>
					</tr>

					<tr>
						<td width="10%" rowspan="3">
							<el-radio-group v-model="form1.equipment_function_1">
								<el-radio :label="1" style="margin-bottom: 5px"><span style="display: inline-block; width: 56px; letter-spacing: 12px">口 内</span></el-radio>
								<el-radio :label="2" style="margin-bottom: 5px">口外全景</el-radio>
								<el-radio :label="3">头颅侧位</el-radio>
							</el-radio-group>
						</td>
						<td width="10%">
							<el-input v-model="form1.tubeVoltage_1_1"/>
						</td>
						<td width="10%">
							<el-input v-model="form1.detectionValue_1_1_1"/>
						</td>
						<td width="10%">
							<el-input v-model="form1.detectionValue_1_1_2"/>
						</td>
						<td width="10%">
							<el-input v-model="form1.detectionValue_1_1_3"/>
						</td>
						<td width="10%" class="result">
							<span>{{form1.inherentError_1_1}}</span>
						</td>
						<td width="10%" class="result">
							<span>{{form1.correctValue_1_1}}</span>
						</td>
						<td width="10%" class="result">
							<span>{{form1.deviation_1_1}}</span>
						</td>
						<td width="10%">
							<el-input v-model="form1.halfValueLayerReadoutValue_1_1"/>
						</td>
						<td width="10%" class="result">
							<span>{{form1.halfValueLayerRounding_1_1}}</span>
						</td>
					</tr>
					<tr>
						<td>
							<el-input v-model="form1.tubeVoltage_1_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_1_2_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_1_2_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_1_2_3"/>
						</td>
						<td class="result">
							<span>{{form1.inherentError_1_2}}</span>
						</td>
						<td class="result">
							<span>{{form1.correctValue_1_2}}</span>
						</td>
						<td class="result">
							<span>{{form1.deviation_1_2}}</span>
						</td>
						<td>
							<el-input v-model="form1.halfValueLayerReadoutValue_1_2"/>
						</td>
						<td class="result">
							<span>{{form1.halfValueLayerRounding_1_2}}</span>
						</td>
					</tr>
					<tr>
						<td>
							<el-input v-model="form1.tubeVoltage_1_3"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_1_3_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_1_3_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_1_3_3"/>
						</td>
						<td class="result">
							<span>{{form1.inherentError_1_3}}</span>
						</td>
						<td class="result">
							<span>{{form1.correctValue_1_3}}</span>
						</td>
						<td class="result">
							<span>{{form1.deviation_1_3}}</span>
						</td>
						<td>
							<el-input v-model="form1.halfValueLayerReadoutValue_1_3"/>
						</td>
						<td class="result">
							<span>{{form1.halfValueLayerRounding_1_3}}</span>
						</td>
					</tr>

					<tr>
						<td rowspan="3">
							<el-radio-group v-model="form1.equipment_function_2">
								<el-radio :label="1" style="margin-bottom: 5px"><span style="display: inline-block; width: 56px; letter-spacing: 12px">口 内</span></el-radio>
								<el-radio :label="2" style="margin-bottom: 5px">口外全景</el-radio>
								<el-radio :label="3">头颅侧位</el-radio>
							</el-radio-group>
						</td>
						<td>
							<el-input v-model="form1.tubeVoltage_2_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_1_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_1_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_1_3"/>
						</td>
						<td class="result">
							<span>{{form1.inherentError_2_1}}</span>
						</td>
						<td class="result">
							<span>{{form1.correctValue_2_1}}</span>
						</td>
						<td class="result">
							<span>{{form1.deviation_2_1}}</span>
						</td>
						<td>
							<el-input v-model="form1.halfValueLayerReadoutValue_2_1"/>
						</td>
						<td class="result">
							<span>{{form1.halfValueLayerRounding_2_1}}</span>
						</td>
					</tr>
					<tr>
						<td>
							<el-input v-model="form1.tubeVoltage_2_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_2_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_2_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_2_3"/>
						</td>
						<td class="result">
							<span>{{form1.inherentError_2_2}}</span>
						</td>
						<td class="result">
							<span>{{form1.correctValue_2_2}}</span>
						</td>
						<td class="result">
							<span>{{form1.deviation_2_2}}</span>
						</td>
						<td>
							<el-input v-model="form1.halfValueLayerReadoutValue_2_2"/>
						</td>
						<td class="result">
							<span>{{form1.halfValueLayerRounding_2_2}}</span>
						</td>
					</tr>
					<tr>
						<td>
							<el-input v-model="form1.tubeVoltage_2_3"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_3_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_3_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_2_3_3"/>
						</td>
						<td class="result">
							<span>{{form1.inherentError_2_3}}</span>
						</td>
						<td class="result">
							<span>{{form1.correctValue_2_3}}</span>
						</td>
						<td class="result">
							<span>{{form1.deviation_2_3}}</span>
						</td>
						<td>
							<el-input v-model="form1.halfValueLayerReadoutValue_2_3"/>
						</td>
						<td class="result">
							<span>{{form1.halfValueLayerRounding_2_3}}</span>
						</td>
					</tr>

					<tr>
						<td rowspan="3">
							<el-radio-group v-model="form1.equipment_function_3">
								<el-radio :label="1" style="margin-bottom: 5px"><span style="display: inline-block; width: 56px; letter-spacing: 12px">口 内</span></el-radio>
								<el-radio :label="2" style="margin-bottom: 5px">口外全景</el-radio>
								<el-radio :label="3">头颅侧位</el-radio>
							</el-radio-group>
						</td>
						<td>
							<el-input v-model="form1.tubeVoltage_3_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_1_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_1_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_1_3"/>
						</td>
						<td class="result">
							<span>{{form1.inherentError_3_1}}</span>
						</td>
						<td class="result">
							<span>{{form1.correctValue_3_1}}</span>
						</td>
						<td class="result">
							<span>{{form1.deviation_3_1}}</span>
						</td>
						<td>
							<el-input v-model="form1.halfValueLayerReadoutValue_3_1"/>
						</td>
						<td class="result">
							<span>{{form1.halfValueLayerRounding_3_1}}</span>
						</td>
					</tr>
					<tr>
						<td>
							<el-input v-model="form1.tubeVoltage_3_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_2_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_2_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_2_3"/>
						</td>
						<td class="result">
							<span>{{form1.inherentError_3_2}}</span>
						</td>
						<td class="result">
							<span>{{form1.correctValue_3_2}}</span>
						</td>
						<td class="result">
							<span>{{form1.deviation_3_2}}</span>
						</td>
						<td>
							<el-input v-model="form1.halfValueLayerReadoutValue_3_2"/>
						</td>
						<td class="result">
							<span>{{form1.halfValueLayerRounding_3_2}}</span>
						</td>
					</tr>
					<tr>
						<td>
							<el-input v-model="form1.tubeVoltage_3_3"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_3_1"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_3_2"/>
						</td>
						<td>
							<el-input v-model="form1.detectionValue_3_3_3"/>
						</td>
						<td class="result">
							<span>{{form1.inherentError_3_3}}</span>
						</td>
						<td class="result">
							<span>{{form1.correctValue_3_3}}</span>
						</td>
						<td class="result">
							<span>{{form1.deviation_3_3}}</span>
						</td>
						<td>
							<el-input v-model="form1.halfValueLayerReadoutValue_3_3"/>
						</td>
						<td class="result">
							<span>{{form1.halfValueLayerRounding_3_3}}</span>
						</td>
					</tr>
				</table>
				<div class="tip-50">
					<i>
						管电压偏离：$E_{v} = ((\overline V - V_0) / V_0) \times 100\%$；
						管电压校准：$\overline{V} = \overline{V}_{i} (1 - I/100)$；
					</i>
				</div>
			</div> -->

			<!-- 2.输出量重复性------------------------------------------------------------------------ -->
			<!-- <div id="table2">
				<div class="innertitle">
					2.输出量重复性
				</div>
				（ <el-checkbox v-model="form2.notHave" style="margin-right: 0">口外机无此项</el-checkbox>）
					管电压：<el-input v-model="form2.tubeVoltage" class="input-line"/> kV；
					管电流= <el-input v-model="form2.tubeCurrent" class="input-line"/> mA；
					曝光时间= <el-input v-model="form2.exposureTime" class="input-line"/> s；
				<table border="1" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td colspan="5">空气比释动能值（mGy）</td>
						<td colspan="5">辐射输出量测量值K（mGy/mAs）</td>
						<td ><i>$\overline K$</i> <br> mGy/mAs</td>
						<td >重 复 性 <br> CV(%)</td>
					</tr>

					<tr>
						<td :width="`${100/12}%`">
							<el-input v-model="form2.kerma_1"/>
						</td>
						<td :width="`${100/12}%`">
							<el-input v-model="form2.kerma_2"/>
						</td>
						<td :width="`${100/12}%`">
							<el-input v-model="form2.kerma_3"/>
						</td>
						<td :width="`${100/12}%`">
							<el-input v-model="form2.kerma_4"/>
						</td>
						<td :width="`${100/12}%`">
							<el-input v-model="form2.kerma_5"/>
						</td>
						<td :width="`${100/12}%`" class="result">
							<span>{{form2.radiationOutput_1}}</span>
						</td>
						<td :width="`${100/12}%`" class="result">
							<span>{{form2.radiationOutput_2}}</span>
						</td>
						<td :width="`${100/12}%`" class="result">
							<span>{{form2.radiationOutput_3}}</span>
						</td>
						<td :width="`${100/12}%`" class="result">
							<span>{{form2.radiationOutput_4}}</span>
						</td>
						<td :width="`${100/12}%`" class="result">
							<span>{{form2.radiationOutput_5}}</span>
						</td>
						<td :width="`${100/12}%`" class="result">
							<span>{{form2.radiationOutputAverage}}</span>
						</td>
						<td :width="`${100/12}%`" class="result">
							<span>{{form2.repeatability}}</span>
						</td>
					</tr>
				</table>

				<div class="tip-50">
					重复性 <i>$CV = 1 / \overline K \sqrt { \sum (K_i - \overline K) ^ 2 / (n - 1)} \times 100\%$</i>
				</div>
			</div> -->

			<!-- 3.曝光时间指示的偏离------------------------------------------------------------------------ -->
			<!-- <div id="table3">
				<div class="innertitle">
					3.曝光时间指示的偏离
				</div>
				（ <el-checkbox v-model="form3.notHave" style="margin-right: 0">设备无此项功能</el-checkbox>）
				检测几何条件同管电压指示的偏离
				<table border="1" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td width="10%">设备功能</td>
						<td>曝光时间预设值 <i>$T_0$</i><br>（ms）</td>
						<td colspan="3">检测值<i>$T_i$</i>(ms)</td>
						<td width="10%">固有误差<i>$\delta$</i></td>
						<td width="10%">修正值<i>$_\overline T$</i></td>
						<td width="10%">曝光时间偏离<br>（%）</td>
					</tr>
					<tr>
						<td>口内</td>
						<td>
							<el-input v-model="form3.presets_1"/>
						</td>
						<td>
							<el-input v-model="form3.value_1_1"/>
						</td>
						<td>
							<el-input v-model="form3.value_1_2"/>
						</td>
						<td>
							<el-input v-model="form3.value_1_3"/>
						</td>
						<td class="result">
							<span>{{form3.inherentError_1}}</span>
						</td>
						<td class="result">
							<span>{{form3.correctedValue_1}}</span>
						</td>
						<td class="result">
							<span>{{form3.exposureTimeDeviation_1}}</span>
						</td>
					</tr>
					<tr>
						<td>全景</td>
						<td>
							<el-input v-model="form3.presets_2"/>
						</td>
						<td>
							<el-input v-model="form3.value_2_1"/>
						</td>
						<td>
							<el-input v-model="form3.value_2_2"/>
						</td>
						<td>
							<el-input v-model="form3.value_2_3"/>
						</td>
						<td class="result">
							<span>{{form3.inherentError_2}}</span>
						</td>
						<td class="result">
							<span>{{form3.correctedValue_2}}</span>
						</td>
						<td class="result">
							<span>{{form3.exposureTimeDeviation_2}}</span>
						</td>
					</tr>
					<tr>
						<td>头颅</td>
						<td>
							<el-input v-model="form3.presets_3"/>
						</td>
						<td>
							<el-input v-model="form3.value_3_1"/>
						</td>
						<td>
							<el-input v-model="form3.value_3_2"/>
						</td>
						<td>
							<el-input v-model="form3.value_3_3"/>
						</td>
						<td class="result">
							<span>{{form3.inherentError_3}}</span>
						</td>
						<td class="result">
							<span>{{form3.correctedValue_3}}</span>
						</td>
						<td class="result">
							<span>{{form3.exposureTimeDeviation_3}}</span>
						</td>
					</tr>
				</table>
				<div class="tip-50">
					<i>
						曝光时间偏离：$E_{T} = ((\overline T - T_0) / T_0) \times 100\%$；
						曝光时间校准：$\overline{T} = \overline{T}_{i} - \delta$
					</i>
				</div>
			</div> -->

			<!-- 5.高对比分辨力和低对比分辨力------------------------------------------------------------------ -->
			<!-- <div id="table5">
				<div class="innertitle">
					5.高对比分辨力和低对比分辨力
				</div>
				（ <el-checkbox v-model="form5.nonDigitalImaging" style="margin-right: 0">非数字成像设备不检测此项</el-checkbox>）

				<div class="tip-30">
					<div class="checkbox-bolder">
						<el-checkbox v-model="form5.export" style="display: inline">对于口内机，将线对卡或测试模体置于靠近线束筒出口位置；</el-checkbox> <br>
						<el-checkbox v-model="form5.surface" style="display: inline">对于口外机全景摄影功能，将线对卡或测试模体置于头托中心，X射线球管出线口放置0.8mmCu；</el-checkbox> <br>
						<el-checkbox v-model="form5.outside" style="display: inline">对于口外机头颅侧位摄影功能，将线对卡或测试模体置于头颅所在位置，X射线球管出线口放置0.8mmCu；</el-checkbox>
					</div>
				</div>

				<table border="1" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td rowspan="2">设备功能</td>
						<td colspan="3">曝光条件</td>
						<td colspan="2">在高分辨率显示器上读取影像</td>
					</tr>

					<tr>
						<td>电压（kV）</td>
						<td>电流（mA）</td>
						<td>时间（s）</td>
						<td>可分辨的线对组数</td>
						<td>可分辨0.5mm厚铝板上最小孔径</td>
					</tr>

					<tr>
						<td width="10%">口内</td>
						<td width="10%">
							<el-input v-model="form5.tubeVoltageExport"/>
						</td>
						<td width="10%">
							<el-input v-model="form5.tubeCurrentExport"/>
						</td>
						<td width="10%">
							<el-input v-model="form5.exposureTimeExport"/>
						</td>
						<td>
							<el-input v-model="form5.numberGroupsExport" style="width: 30%"/> lp/mm
						</td>
						<td>
							<el-input v-model="form5.minimumApertureExport" style="width: 30%"/> mm
						</td>
					</tr>
					<tr>
						<td>全景</td>
						<td>
							<el-input v-model="form5.tubeVoltageSurface"/>
						</td>
						<td>
							<el-input v-model="form5.tubeCurrentSurface"/>
						</td>
						<td>
							<el-input v-model="form5.exposureTimeSurface"/>
						</td>
						<td>
							<el-input v-model="form5.numberGroupsSurface" style="width: 30%"/> lp/mm
						</td>
						<td>
							<el-input v-model="form5.minimumApertureSurface" style="width: 30%"/> mm
						</td>
					</tr>
					<tr>
						<td>头颅</td>
						<td>
							<el-input v-model="form5.tubeVoltageOutside"/>
						</td>
						<td>
							<el-input v-model="form5.tubeCurrentOutside"/>
						</td>
						<td>
							<el-input v-model="form5.exposureTimeOutside"/>
						</td>
						<td>
							<el-input v-model="form5.numberGroupsOutside" style="width: 30%"/> lp/mm
						</td>
						<td>
							<el-input v-model="form5.minimumApertureOutside" style="width: 30%"/> mm
						</td>
					</tr>
				</table>
			</div> -->
		</div>
  </div>
</template>

<script>
import { getInfoById, tubeVoltageHalfValueLayer, outputRepeatability,
	exposureTime, halfValueLayer, contrastResolution, kap, imageUniformity, rangeError } from "@/api/testItem/item08";

export default {
  name: "testItem08",
  data() {
    return {
			form: {},
			// 表单-1.管电压指示的偏离与有用线束半值层
			form1: {

			},
			// 表单-2.输出量重复性
			form2: {

			},
			// 表单-3.曝光时间指示的偏离
			form3: {

			},
			// 表单-4.有用线束半值层
			form4: {

			},
			// 表单-5.高对比分辨力、低对比分辨力
			form5: {

			},
			// 表单-6.KAP指示偏离
			form6: {

			},
			// 表单-7.图像均匀性
			form7: {

			},
			// 表单-8.测距误差
			form8: {

			},
			itemsId: null,
    };
  },
  props: {
		// 基本信息数据
    basicForm: {
			type: Object,
      default: () => {
				return {}
			},
    },
  },
  created() {
		this.$nextTick(()=>{
			// 获取详情
			this.getDetailInfo()
			// 绑定请求---表格
			let itemsLength = 8;
			for (let index = 0; index < itemsLength; index++) {
				let tableInputs = document.getElementById(`table${index + 1}`).getElementsByTagName("input");
				for (let i = 0; i < tableInputs.length; i++) {
					this.bind(tableInputs[i], () => {
						this.submitTestForm(index + 1)
					})
					// let elSelect = this.elHaveComponent(tableInputs[i]) // 获取Component
					// elSelect.$on('change', function(){
					// 	try {
					// 		this.validate(tableInputs[i])
					// 	} catch (error) {
					// 		console.log(error)
					// 	}
					// 	_this.submitTestForm(index + 1);
					// })
				}
			}
		})
  },
  methods: {
		getDetailInfo() {
			getInfoById(this.basicForm.resultId).then(response => {
				this.itemsId =  response.data?.itemsId;
				// 1.管电压指示的偏离
				this.form1 =  response.data?.tubeVoltageHalfValueLayer || {};
				// 2.输出量重复性
				this.form2 =  response.data?.outputRepeatability || {};
				// 3.曝光时间指示的偏离
				this.form3 =  response.data?.exposureTime || {};
				// 4.有用线束半值层
				this.form4 =  response.data?.halfValueLayer || {};
				// 5.高对比分辨力和低对比分辨力
				this.form5 =  response.data?.contrastResolution || {};
				// 6.KAP指示偏离
				this.form6 =  response.data?.kap || {};
				// 7.图像均匀性
				this.form7 =  response.data?.imageUniformity || {};
				// 8.测距误差
				this.form8 =  response.data?.rangeError || {};
			}).catch((response) => {
				this.$emit("loadingchange", true);
			});
		},
		// 提交检测项信息
		submitTestForm(index) {
			this.$emit("loadingchange", true);
			this[`form${index}`].itemsId = this.itemsId;
			switch (index) {
				// 1.管电压指示的偏离与有用线束半值层
				case 1:
					tubeVoltageHalfValueLayer(this.form1).then((response) => {
						response.data ? this.form1 = response.data : "";
						this.$emit("loadingchange", false);
						this.getDetailInfo();
					})
        	break;
				// 2.输出量重复性
				case 2:
					outputRepeatability(this.form2).then((response) => {
						response.data ? this.form2 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 3:
					// 3.曝光时间指示的偏离
					exposureTime(this.form3).then((response) => {
						response.data ? this.form3 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 4:
					// 4.有用线束半值层
					halfValueLayer(this.form4).then((response) => {
						response.data ? this.form4 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 5:
					// 5.高对比分辨力和低对比分辨力
					contrastResolution(this.form5).then((response) => {
						response.data ? this.form5 = response.data : "";
						this.$emit("loadingchange", false);
					})
					break;
				case 6:
					// 6.KAP指示偏离
					kap(this.form6).then((response) => {
						response.data ? this.form6 = response.data : "";
						this.$emit("loadingchange", false);
					})
				break;
				case 7:
					// 7.图像均匀性
					imageUniformity(this.form7).then((response) => {
						response.data ? this.form7 = response.data : "";
						this.$emit("loadingchange", false);
					})
				break;
				case 8:
					// 8.测距误差
					rangeError(this.form8).then((response) => {
						response.data ? this.form8 = response.data : "";
						this.$emit("loadingchange", false);
					})
				break;
			}
		},
    handleChange() {
        if (this.form5.notHave) {
          this.form5 = {}
          this.form5.notHave = true
        }
    },
  },
};
</script>

<style lang="scss" scoped>
@import '../content.scss';
</style>
